package com.example.book_recommend.service;

import com.example.book_recommend.entity.UserRole;
import com.example.book_recommend.entity.UserRoleKey;

public interface UserRoleService {
    UserRole getOne(Integer userId, Integer roleId);

    Integer[] getRolesByUser(Integer userId);

    int delete(UserRoleKey userRoleKey);

    int add(UserRole userRole);

    int updateUserRoleByRole(Integer oldRoleId, Integer newRoleId);
}
